package com.sheliduan.itlearning.common.model.vos;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: 断舍离
 * @date: 2025/4/16 12:50
 * @description:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AddOrderReqVO {

    @NotNull(message = "课程id不能为空")
    private Integer courseId;

    private String number;

    @NotNull(message = "课程类型不能为空")
    private Integer type;

    @NotNull(message = "课程价格不能为空")
    private Double price;

    private Date orderTime;

    @NotNull(message = "登录后才可以下单哦")
    private Integer userId;

}
